</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?php
session_start( );
require_once("../DataProvider.php");
if (isset($_REQUEST["name"]) && isset($_REQUEST["password"])) {
	//dung username va password
	$islogin=DataProvider::ktdangnhap($_REQUEST["name"],$_REQUEST["password"]);
	if ($islogin==1) {
		$_SESSION["islogin"]=true;
		$_SESSION["username"]=$_REQUEST["name"];
		$_SESSION["password"]=$_REQUEST["password"];
	}
	else{
	$_SESSION["islogin"]=false;
	}
}
?>
<head>
<meta http-equiv="refresh" content="0;URL= index.php">

</head>